package org.idea.qiyu.framework.canal.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * canal对应的配置
 *
 * @Author idea
 * @Date created in 9:53 上午 2021/6/18
 */
@Configuration
@ConfigurationProperties(prefix = "qiyu.canal")
public class CanalProperties {

    public Map<String, CanalInstanceProperties> instances;

    public Map<String, CanalInstanceProperties> getInstances() {
        return instances;
    }

    public void setInstances(Map<String, CanalInstanceProperties> instances) {
        this.instances = instances;
    }

    @Override
    public String toString() {
        return "CanalProperties{" +
                "instances=" + instances +
                '}';
    }
}
